﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL.User;

namespace WebApplication
{
    public partial class Resume : System.Web.UI.Page
    {
        private UserService userService = new UserService();

        public Models.ResumeInfo resumeInfo = null;

        public Models.UserInfo userInfo = null;

        protected void Page_Load(object sender, EventArgs e)
        {
            string queryId = Request.QueryString["id"];

            if(string.IsNullOrEmpty(queryId))
            {
                Response.Redirect("/");
                return;
            }

            int id = Convert.ToInt32(queryId);

            Models.User queryUser = new Models.User { UserID = id };

            userInfo = userService.GetUserInfo(queryUser);
            resumeInfo = userService.GetResumeInfo(queryUser);

        }
    }
}